﻿using System.Collections.Generic;
using eCommMongo.Core;
using eCommMongo.Core.Domain.Categorys;

namespace eCommMongo.Service.Categorys
{
    public interface ICategoryService
    {
        

        IPagedList<Category> GetAllCategories(string categoryName = "", int pageIndex = 0, int pageSize = int.MaxValue);
        IList<Category> GetAllCategoriesByParentCategoryId(int parentCategoryId);

        Category GetCategoryById(int categoryId);


        void InsertCategory(Category category);
        void DeleteCategory(Category category);
        void UpdateCategory(Category category);

    }

   
}